<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<?php
  $arr=[['name'=>'张三','id'=>'1','age'=>12],
  ['name'=>'历史','id'=>'2','age'=>22],
  ['name'=>'阿布','id'=>'3','age'=>32]];
?>
<body>
    <table>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
        </tr>
        <?php foreach($arr as $v):?>
            <tr>
                <td><?php echo $v['id'];?></td>
                <td><?php echo $v['name'];?></td>
                <td><?php echo $v['age'];?></td>
            </tr>
        <?php endforeach?>
    </table>
</body>
</html>